﻿namespace SmartCity.Shared
{
    /// <summary>
    /// 授权管理接口
    /// </summary>
    public interface IAuthManager
    {
        /// <summary>
        /// 生成票据
        /// </summary>
        /// <param name="userId"></param>
        string GenerateToken(int userId);

        /// <summary>
        /// 获取UserId
        /// </summary>
        int GetUserId();
    }
}